import { Service } from '../util/axios'

// 查歌单
export const SongListOne = () => {
  return Service({
    url: `/personalized`,
    method: 'GET'
  })
}

// 查下方最新歌曲
export const SongListNewSong = () => {
  return Service({
    url: `/personalized/newsong`,
    method: 'GET'
  })
}

// 点击歌单获取头部信息
export const SongListHead = (id) => {
  return Service({
    url: `/playlist/detail/?id=${id}`,
    method: 'GET'
  })
}

// 点击进歌单页面的列表
export const SongListBody = (id) => {
  return Service({
    url: `/comment/playlist/?id=${id}`,
    method: 'GET'
  })
}

// 给评论点赞
export const songListGreat  = (id, cid, t, type) => {
  return Service({
    url: `/comment/like/?id=${id}&cid=${cid}&t=${t}&type=${type}`,
    method: 'GET'
  })
}

// 获取歌曲url
export const songListFindMusic = (id) => {
  return Service({
    url: `/song/url?id=${id}`,
    method: 'GET'
  })
}

// 获取歌词
export const songListFindLyric = (id) => {
  return Service({
    url: `/lyric?id=${id}`,
    method: 'GET'
  })
}